math2d = math2d or {}

function math2d.pMidpoint(pt1,pt2,ret)
    ret.x = (pt1.x + pt2.x) / 2.0 
    ret.y = ( pt1.y + pt2.y) / 2.0
end
